package com.libinyn.base.pms.serivce.sys;


import com.libinyn.base.pms.common.utils.Result;
import com.libinyn.base.pms.entity.sys.SysUserTokenEntity;
import com.libinyn.base.pms.serivce.BaseService;


/**
 * 用户Token 相关操作
 * @fileName: SysUserTokenService.java
 * @author: bin.li01
 * @date: 2017/12/10 11:47 
 * @version: v1.0.0
 */
public interface SysUserTokenService extends BaseService<SysUserTokenEntity> {


	/**
	 * 生成token
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	Result createToken(long userId) throws Exception;

	/**
	 * 退出，修改token值
	 * @param userId
	 * @throws Exception
	 */
	void logout(long userId) throws Exception;

}
